package com.yvon.maple.service.base.config;

import com.yvon.maple.cloud.web.config.BaseSwaggerConfig;
import com.yvon.maple.cloud.web.properties.SwaggerProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import springfox.bean.validators.configuration.BeanValidatorPluginsConfiguration;
import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;

@Configuration
@EnableSwagger2WebMvc
@Import(BeanValidatorPluginsConfiguration.class)
public class SwaggerConfig extends BaseSwaggerConfig {

    @Override
    public SwaggerProperties swaggerProperties() {
        return SwaggerProperties.builder()
                .apiBasePackage("com.yvon.maple.service.base.controller")
                .title("基础服务")
                .description("基础微服务相关接口文档")
                .contactName("yvon")
                .version("1.0")
                .enableSecurity(false)
                .build();
    }
}